﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace TraceabilityObjects
{
    public class InfoDll
    {

        public FileVersionInfo InfoAboutMe()
        {
            return DisplayAssemblyData(this.GetType().Assembly.Location);
        }
        public FileVersionInfo InfoAboutExecuting()
        {
            return DisplayAssemblyData(Assembly.GetEntryAssembly().Location);
        }
        private static FileVersionInfo DisplayAssemblyData(string pathAssembly)
        {

            return FileVersionInfo.GetVersionInfo(pathAssembly);
        }
    }
}
